
import { PhysicsSystem } from 'cc';
import { DEBUG, DEV, PREVIEW, EDITOR } from 'cc/env';
import { MLA_PHYSICS_MODULE, MLA_ANALYTICS_MODULE, MLA_SUPPORTED_TRAINING_PLATFORM } from 'cc/userland/macro';


export default class Macro {

    /**
     * 是否使用模型推理
     */
    static MLA_ANALYTICS_MODULE: boolean = MLA_ANALYTICS_MODULE ?? false;

    static MLA_SUPPORTED_TRAINING_PLATFORM: boolean = MLA_SUPPORTED_TRAINING_PLATFORM ?? false;

    static get MLA_PHYSICS_MODULE(): boolean {
        return PhysicsSystem.instance.enable
    }

    static get CCC_PREVIEW(): boolean {
        return PREVIEW;
    }

    static get CCC_DEV(): boolean {
        return DEV;
    }

    static get CCC_EDITOR(): boolean {
        return EDITOR;
    }

}
